JBoss Community Archive (Read Only)

Teiid 8.4

Connections to Source

Obtaining connections

The extended "ExecutionFactory" must implement the getConnection() method to allow the Connector Manager to obtain a connection.

Releasing Connections

Once the Connector Manager has obtained a connection, it will use that connection only for the lifetime of the request.  When the request has completed, the closeConnection() method called on the "ExecutionFactory". You must also override this method to properly close the connection.

In cases (such as when a connection is stateful and expensive to create), connections should be pooled. If the resource adapter is JEE JCA connector based, then pooling is automatically provided by the JBoss AS container. If your resource adapter does not implement the JEE JCA, then connection pooling semantics are left to the user to define on their own.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:41:36 UTC, last content change 2013-06-11 13:51:05 UTC.